<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
>
	<!-- DIALOGO DESATIVAÇÃO -->
	
	<p:dialog id="dialogoDesativar" header="Ativação de Professor" widgetVar="dialogoDesativar" width="500" 
		appendToBody="true" resizable="false" modal="true" >  
		<h:form id="formDesativar">
	        <p:panel>
	        	<center>Deseja realmente desativar este professor?</center>  
	            	<div style="text-align: right;">
	            		<br/><p:separator /><br/>
		                <p:commandButton update="formPrincipal" action="#{professorBean.desativar}" value="Sim" onclick="dialogoDesativar.hide()"/>
		                <p:commandButton type="button" value="Não" onclick="dialogoDesativar.hide()"/>
	                </div>
	        </p:panel>
		</h:form>
	</p:dialog> 
	
	<!-- DIALOGO ATIVAÇÃO -->
	<p:dialog id="dialogoAtivar" header="Ativação de Professor" widgetVar="dialogoAtivar" width="500"
		appendToBody="true" modal="true" resizable="false">  
		<h:form id="formAtivar">
	        <p:panel>
	        	<center>Deseja realmente ativar este professor?</center>  
	            	<div style="text-align: right;">
	            		<br/><p:separator /><br/>
		                <p:commandButton update="formPrincipal" action="#{professorBean.ativar}" value="Sim" onclick="dialogoAtivar.hide()"/>
		                <p:commandButton type="button" value="Não" onclick="dialogoAtivar.hide()"/>
	                </div>
	        </p:panel>
		</h:form>
	</p:dialog>
</html>